home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
001-025
/
disk_012
/
setalternate
/
poster
next >
Wrap
Text File
|
1992-05-06
|
3KB
|
61 lines
Article 698 of net.micro.amiga:
Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site unisoft.UUCP
Path: unisoft!lll-lcc!lll-crg!seismo!harvard!talcott!panda!genrad!decvax!ittatc!dcdwest!sdcsvax!ncr-sd!ncrcae!ncsu!jcz
From: jcz@ncsu.UUCP
Newsgroups: net.micro.amiga
Subject: Alternate Images for Icons
Message-ID: <3003@ncsu.UUCP>
Date: 18 Feb 86 04:38:53 GMT
Date-Received: 19 Feb 86 07:18:09 GMT
Sender: jcz@ncsu.UUCP
Organization: SAS Institute Inc
Lines: 129
In making some enhancements to the Icons for Hack, I wrote a very simple utility
that you may find useful. Normally, the Icon editor only lets you create icons
whos selected action is either to reverse the image or provide backfill.
However, in the gadget structure for the Icon is the ability to put an alternate
image as found in any gadget. To use it you simply have to supply an alternate
image and set the appropriate bits in the structure. Unfortunately ICONED fails
to provide an easy way to do this so I wrote a Q&D tool to combine two icons
into a single one with the second being an alternate image for the first.
To use it, first compile the program (It works under Lattice, have no idea
about MANX) and link it.
Then create two icons for the one you want. Make the first the normal image
and the second the alternate image. When saving them make sure you set the
frame the same for both or the results will be an alternate image slightly
out of wack (and I don't mean the debugger) with the first. Lets assume
the first is called 'primary' and the second 'alternate'. At this point
there will be four files on disk:
primary
primary.info
secondary
secondary.info
Now run the SetAlternate program with
SetAlternate primary secondary
The primary icon will now display the second one when you hit on it. Note
that since the image was copied, you can delete the second one ('secondary'
in this case) without any effect. Note however that ICONED does not know
exactly what to do with the alternate image so you lose it if you edit the
Icon. Have no fear, just run the program again to reset the alternate. Also
there are no side effects from running SetAlternate over and over on the
same icons (other than waste time).
--------------cut here ---- cut here ---- cut here ----------------
--------------- end of program --------------
If there is an Interest, I can provide several such tools for manipulating
Icons. I have an icon - ICONEXEC - that when you click on it opens up a
window and executes the commands that are in the tool types. I will be posting
this in a day or two.
John A. Toebes, VIII
120-H Northington Place
Cary NC 27511
(919) 469-4210
Usenet: ...!mcnc!ncsu!jcz
Disclaimer: My Amiga wrote the above on its own